package com.wd.jetpack.demo.main

import android.view.View
import com.wd.jetpack.R
import com.wd.jetpack.base.BaseActivity
import com.wd.jetpack.databinding.ActivityDemoImageBinding
import com.wd.jetpack.demo.main.vm.DemoImageViewModel

class DemoImageActivity : BaseActivity<ActivityDemoImageBinding>() {
    private val mViewModel: DemoImageViewModel by lazy { DemoImageViewModel() }

    override fun onClick(v: View) {
    }

    override fun getLayoutId(): Int {
        return R.layout.activity_demo_image
    }

    override fun initView() {
        mBinding.vm = mViewModel
        val img_jt = "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic1.win4000.com%2Fpic%2Fb%2F8d%2Fcb4e3cded5_250_300.jpg&refer=http%3A%2F%2Fpic1.win4000.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627377458&t=444b223e0b665e0ade6abbf14ac2cd90"
        mBinding.netWorkImage = img_jt
    }

    override fun initData() {
    }
}